import request from '@/utils/request'

// 查询关键站点数据列表
export function listImportantservice(query) {
  return request({
    url: '/tietasystem/importantservice/list',
    method: 'get',
    params: query
  })
}

// 查询关键站点数据详细
export function getImportantservice(id) {
  return request({
    url: '/tietasystem/importantservice/' + id,
    method: 'get'
  })
}

// 新增关键站点数据
export function addImportantservice(data) {
  return request({
    url: '/tietasystem/importantservice/add',
    method: 'post',
    data: data
  })
}

// 修改关键站点数据
export function updateImportantservice(data) {
  return request({
    url: '/tietasystem/importantservice/update',
    method: 'post',
    data: data
  })
}

// 删除关键站点数据
export function delImportantservice(id) {
  return request({
    url: '/tietasystem/importantservice/' + id,
    method: 'delete'
  })
}

// 导出关键站点数据
export function exportImportantservice(query) {
  return request({
    url: '/tietasystem/importantservice/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/tietasystem/importantservice/importTemplate',
    method: 'get'
  })
}
